package com.jzsk.variable.center.zhengxin.controller;

import com.jzsk.variable.center.domain.dto.user.LoadUserReqDTO;
import com.jzsk.variable.center.domain.dto.user.LoadUserRespDTO;
import com.jzsk.variable.center.domain.vo.ResponseVO;
import com.jzsk.variable.center.service.user.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/user")
@Api(tags = "用户管理")
public class UserController {

    @Resource
    UserService userService;

    @PostMapping("/loadUsers")
    @ApiOperation(value = "加载用户列表数据", notes = "加载用户列表数据")
    public ResponseVO<LoadUserRespDTO> loadUsers(@RequestBody LoadUserReqDTO loadUserReqDTO) {
        return userService.loadUsers(loadUserReqDTO);
    }

}
